package com.xy.datastruc.graph;

public class MatrixgraphTest {

    public static void main(String[] args) {

        Matrixgraph matrixgraph = new Matrixgraph(5);

        matrixgraph.addVertex(new Vertex("A"));
        matrixgraph.addVertex(new Vertex("B"));
        matrixgraph.addVertex(new Vertex("C"));
        matrixgraph.addVertex(new Vertex("D"));
        matrixgraph.addVertex(new Vertex("E"));


        matrixgraph.addAdge("A", "C");
        matrixgraph.addAdge("A", "B");
        matrixgraph.addAdge("B", "C");
        matrixgraph.addAdge("C", "D");


        matrixgraph.printGraph();

    }
}
